package messagesPacks;
import java.util.ArrayList;
import java.util.Hashtable;

import messagesPacks.GenericMessage.msgType;
import Entity.*;
public class BorrowStatisticsMSG extends GenericMessage
{
	private static final long serialVersionUID = 1L;
	public double not_wanted_avg=0;
	public int not_wanted_median=0;
	public double wanted_avg=0;
	public int wanted_median=0;
	private ArrayList<BorrowStatistics> borrowStatisticsArr;
	public BorrowStatisticsMSG()
	{
		this.type=msgType.BorrowStatisticsMSG;
		borrowStatisticsArr=new ArrayList<BorrowStatistics>();
	}
	public ArrayList<BorrowStatistics> getborrowStatisticsArr()
	{
		return this.borrowStatisticsArr;
	}
	public void setborrowStatisticsArr(ArrayList<BorrowStatistics> borrowStatisticsArr)
	{
		this.borrowStatisticsArr=borrowStatisticsArr;
	}
	public BorrowStatistics getBorrowDetails(int num)
	{
		return this.borrowStatisticsArr.get(num);
	}
	public void setBorrowDetails(BorrowStatistics borrowStatistics)
	{
		this.borrowStatisticsArr.add(borrowStatistics);
	}
	
}
